﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildApplyCondition extends IMessageBase
    {
        public var isNeedReply:Boolean;
        public var vip:int;
        public var combat:int;
        public var level:int;
        public var activity:int;
        public var playerLevel:int;
        public const _type:int = 16117;
        public static var _regist:SGuildApplyCondition = new SGuildApplyCondition(true);

        public function SGuildApplyCondition(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildApplyCondition();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.isNeedReply);
            param1.writeInt(this.vip);
            param1.writeInt(this.combat);
            param1.writeInt(this.level);
            param1.writeInt(this.activity);
            param1.writeInt(this.playerLevel);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.isNeedReply = param1.readBool();
            this.vip = param1.readInt();
            this.combat = param1.readInt();
            this.level = param1.readInt();
            this.activity = param1.readInt();
            this.playerLevel = param1.readInt();
            return;
        }// end function

    }
}
